"""
created@2019/11/26
"""

from random import randint


def mock_wechat_callback(wx_msg_id, totalcount=0):
    """mock 群发微信回调数据"""
    
    data = dict()
    data['MsgID'] = wx_msg_id
    data['TotalCount'] = totalcount
    data['FilterCount'] = totalcount
    data['ErrorCount'] = randint(0, totalcount)
    data['SentCount'] = totalcount - data['ErrorCount']
    data['Status'] = 'send success'

    return data
